<template>
  <div id="app">
    <HelloWorld v-model="from.msg"/>
    <HelloWorld :value="from.msg2" @input="from.msg2 = $event"/>
  </div>
</template>

<script>
import HelloWorld from './components/div2input.vue'

export default {
  name: 'App',
  components: {
    HelloWorld
  },
  data(){
    return{
      from: {
        msg: 'hello',
        msg2: 'hello2'
      }
    }
  }
}
</script>

<style>
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
